<!--
*Author：COCO
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/boma/bom_manager/BOMmanageAdd.js此处编写
 -->
<template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
        :table="table" :extend="extend">
    </view-grid>
</template>
<script>
import extend from "@/extension/boma/bom_manager/BOMmanageAdd.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'ProcessmanagementId',
            footer: "Foots",
            cnName: '工艺工序管理',
            name: 'Processprocedures/Processmanagement',
            url: "/Processmanagement/",
            sortName: "CreateDate "
        });
        const editFormFields = ref({ "Processnumber": "", "Processroutename": "", "State": "", "ProductName": "", "CreateData": "", "Founder": ""});
        const editFormOptions = ref([[{ "title": "工艺编号", "field": "Processnumber" }],
            [{ "title": "工艺名称", "field": "Processroutename" }],
            [{ "title": "状态", "field": "State" }],
            [{ "title": "成品名称", "field": "ProductName", "type": "number" }],
            [{ "title": "创建时间", "field": "CreateData", "type": "datetime" }],
            [{ "title": "创建人", "field": "Founder" }],
       ]);
        const searchFormFields = ref({});
        const searchFormOptions = ref([]);
        const columns = ref([{ field: 'ProcessmanagementId', title: '工艺主键', type: 'guid', width: 110, require: true, align: 'left', sort: true },
            { field: 'Processroutename', title: '工艺编号', type: 'string', width: 120, align: 'left' },
            { field: 'Processroutename', title: '工艺名称', type: 'string', width: 120, align: 'left' },
            { field: 'State', title: '状态', type: 'string', width: 120, align: 'left' },
            { field: 'ProductName', title: '成品名称', type: 'int', width: 110, align: 'left' },
        { field: 'CreateData', title: '创建时间', type: 'datetime', width: 110, align: 'left', sort: true },
            { field: 'Founder', title: '创建人', type: 'string', width: 120, align: 'left' },
       ]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>
